﻿#region Using

using GameCommon.Interfaces;

using GameLogic.FrontEndData.Enums;

#endregion

namespace GameLogic.FrontEndData.Commands
{
    #region Using

    

    #endregion

    public class BuyUpgradeCommand : ICommand
    {
        public BuyUpgradeCommand(IUpgrade upgrade)
        {
            this.Upgrade = upgrade;
        }

        public IUpgrade Upgrade { get; private set; }

        public CommandResult ExecuteOn(ICommandExecutor executor, IPlayer sender)
        {
            return executor.ExecuteCommand(this, sender);
        }
    }
}